package com.kly.user.rulePolicy;

import java.io.Serializable;
import java.util.List;

/**
 * @author linqu
 */
public class Policy implements Serializable {

    private static final long serialVersionUID = 1533686671243677160L;
    /**
     * 策略名
     */
    private String policyName;
    /**
     * 优先级,数值越小优先级越高
     */
    private Integer priority;

    /**
     * 规则列表
     */
    private List<Rule> ruleList;
    /**
     * 规则的组合方式:首次匹配|最坏匹配
     * @see com.kly.user.rulePolicy.enums.RuleComposeEnum
     */
    private String ruleCompose;
    /**
     * 策略结果
     * @see com.kly.user.rulePolicy.enums.DecisionResultEnum
     */
    private Integer policyResult;

    public Policy() {
    }

    public String getPolicyName() {
        return policyName;
    }

    public void setPolicyName(String policyName) {
        this.policyName = policyName;
    }

    public List<Rule> getRuleList() {
        return ruleList;
    }

    public void setRuleList(List<Rule> ruleList) {
        this.ruleList = ruleList;
    }

    public String getRuleCompose() {
        return ruleCompose;
    }

    public void setRuleCompose(String ruleCompose) {
        this.ruleCompose = ruleCompose;
    }

    public Integer getPolicyResult() {
        return policyResult;
    }

    public void setPolicyResult(Integer policyResult) {
        this.policyResult = policyResult;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }
}
